<template>
  <div class="top">
    <div class="top-1">
      <div class="top-left">
        <van-icon name="comment-o" />
        <span @click="toUser">消息</span>
      </div>
      <van-search
        v-model="value"
        placeholder="搜索品牌或商品"
        background="#ff005d"
        shape="round"
        right-icon="point-gift-o"
      />
      <div class="top-right">
        <van-icon name="apps-o" />
        <span>分类</span>
      </div>
    </div>
    <van-tabs >
      <router-link to='/'><van-tab title="精选"></van-tab></router-link>
      <van-tab title="3折疯抢"></van-tab>
      <van-tab title="唯品快抢"></van-tab>
      <van-tab title="唯品奥莱"></van-tab>
    </van-tabs>
  </div>
</template>

<script>
export default {
  name: "Top",
  data() {
    return {
      value: "",
      active: 0,
    };
  },
  methods: {
    
  },
};
</script>

<style scoped>
.top-1 {
  width: 100%;
  background: #ff005d;
  height: 3.666667rem;
  padding-left: 0.133333rem;
  padding-right: 0.133333rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-left {
  font-size: 0.333333rem;
  color: #fff;
  /* line-height: 0.333333rem; */
  text-align: center;
  display: flex;
  flex-direction: column;
  margin-left: 1rem;
}
.top-left .van-icon {
  font-size: 1.533333rem;
  font-weight: bold;
}
.top-right {
  font-size: 0.333333rem;
  color: #fff;
  /* line-height: 0.333333rem; */
  text-align: center;
  display: flex;
  flex-direction: column;
  margin-right: 1rem;
}
.top-right .van-icon {
  font-size: 1.533333rem;
  font-weight: bold;
}
</style>
